home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  2.2 KB  |  95 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Scrap.p
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Scrap;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __SCRAP__}
  28. {$SETC __SCRAP__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ScrapIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MACTYPES__}
  35. {$I MacTypes.p}
  36. {$ENDC}
  37.  
  38.  
  39. {$PUSH}
  40. {$ALIGN MAC68K}
  41. {$LibExport+}
  42.  
  43. {
  44.   _________________________________________________________________________________________________________
  45.    • CLASSIC SCRAP MANAGER API
  46.   _________________________________________________________________________________________________________
  47. }
  48.  
  49.  
  50. TYPE
  51.     ScrapStuffPtr = ^ScrapStuff;
  52.     ScrapStuff = RECORD
  53.         scrapSize:                SInt32;
  54.         scrapHandle:            Handle;
  55.         scrapCount:                SInt16;
  56.         scrapState:                SInt16;
  57.         scrapName:                StringPtr;
  58.     END;
  59.  
  60.     PScrapStuff                            = ^ScrapStuff;
  61. FUNCTION InfoScrap: ScrapStuffPtr;
  62.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  63.     INLINE $A9F9;
  64.     {$ENDC}
  65. FUNCTION UnloadScrap: SInt32;
  66.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  67.     INLINE $A9FA;
  68.     {$ENDC}
  69. FUNCTION LoadScrap: SInt32;
  70.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  71.     INLINE $A9FB;
  72.     {$ENDC}
  73. FUNCTION GetScrap(hDest: Handle; theType: ResType; VAR offset: SInt32): SInt32;
  74.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  75.     INLINE $A9FD;
  76.     {$ENDC}
  77. FUNCTION ZeroScrap: SInt32;
  78.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  79.     INLINE $A9FC;
  80.     {$ENDC}
  81. FUNCTION PutScrap(length: SInt32; theType: ResType; source: UNIV Ptr): SInt32;
  82.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  83.     INLINE $A9FE;
  84.     {$ENDC}
  85. {$ALIGN RESET}
  86. {$POP}
  87.  
  88. {$SETC UsingIncludes := ScrapIncludes}
  89.  
  90. {$ENDC} {__SCRAP__}
  91.  
  92. {$IFC NOT UsingIncludes}
  93.  END.
  94. {$ENDC}
  95.